<?php 
namespace app\Exception;

/**
 *   token 通用类
 */
class AuthTokenException extends BaseException
{
    public $status = 401;
    public $errorMsg = '异常信息';
    public $errorCode = 40000;


    public function __construct($params = []){
        if(!is_array($params)) return;
        if(array_key_exists('status', $params)) $this->status = $params['status'];
        if(array_key_exists('errorMsg', $params)) $this->errorMsg = $params['errorMsg'];
        if(array_key_exists('errorCode', $params)) $this->errorCode = $params['errorCode'];
    }
        
}